import { FriendService } from './friend.service';
import { Controller, Get, Query } from '@nestjs/common';

@Controller('friend')
export class FriendController {
  constructor(
    private readonly friendService: FriendService
  ) {}

  @Get() 
  getFriends(@Query('user_id') user_id: string) {
    return this.friendService.getFriends(user_id);
  }
}
